Skip to content

[stable31] feat: add status text to signers#6112

Merged
vitormattos merged 6 commits intostable31from
backport/6111/stable31
Dec 11, 2025
Merged

[stable31] feat: add status text to signers#6112
vitormattos merged 6 commits intostable31from
backport/6111/stable31

Conversation

@backportbot-libresign
Copy link
Copy Markdown

Backport of PR #6111

Add a getLabel() method to the SignRequestStatus enum to provide
localized status labels (Draft, Pending, Signed). This follows the
same pattern as DocMdpLevel enum and centralizes the translation
logic in the enum itself rather than spreading it across multiple
files.

Signed-off-by: Vitor Mattos <[email protected]>
Add a helper method to get localized status text for signers using
the SignRequestStatus enum. This method delegates to the enum's
getLabel() method to maintain consistency across the application.

Signed-off-by: Vitor Mattos <[email protected]>
Update the LibresignSigner psalm type definition to include status
and statusText as required fields (not optional). These fields will
always be present in API responses for signer data.

Signed-off-by: Vitor Mattos <[email protected]>
Add status and statusText fields to all signer data returned by
FileService. This includes:
- Signers from LibreSign metadata (loadLibreSignSigners)
- Signers from PDF certificate data (loadSignersFromCertData)
- Signers in file listings (associateAllAndFormat)

The status field contains the numeric code (0=Draft, 1=Pending, 2=Signed)
and statusText contains the localized label.

Signed-off-by: Vitor Mattos <[email protected]>
Include status and statusText fields when formatting signers in
ID documents responses. This ensures consistency across all API
endpoints that return signer information.

Signed-off-by: Vitor Mattos <[email protected]>
@github-project-automation github-project-automation Bot moved this to 0. Needs triage in Roadmap Dec 11, 2025
@backportbot-libresign backportbot-libresign Bot added this to the Next Patch (31) milestone Dec 11, 2025
@vitormattos vitormattos merged commit ae3894b into stable31 Dec 11, 2025
35 of 59 checks passed
@vitormattos vitormattos deleted the backport/6111/stable31 branch December 11, 2025 18:07
@github-project-automation github-project-automation Bot moved this from 0. Needs triage to 4. to release in Roadmap Dec 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant